#!/usr/bin/env bash 


if [ ! -f image-list.csv ]
then 
    echo "image-list.csv is not existed."
    exit 1 
fi 

while read line 
do 
    OLD_IFS="$IFS"
    IFS=","
    arr=($line)
    IFS="$OLD_IFS"

    group=${arr[0]}
    image_name=${arr[1]}
    image_version=${arr[2]}

    echo $group/$image_name:$image_version 
    docker pull $group/$image_name:$image_version 

done < image-list.csv








